function register() {
  	var telephone = document.getElementById("telephone");
    var code = document.getElementById("code");
    var username = document.getElementById("username");
    var pass = document.getElementById("password");
 	if (telephone.value == "") {
 
        alert("请输入手机号");
 
    } else if (code.value  == "") {
 
        alert("请输入短信验证码");
 
    }
 	
    else if (username.value == "") {
 
        alert("请输入用户名");
 
    } else if (pass.value  == "") {
 
        alert("请输入密码");
 
    }else if (!document.getElementById('dealCheck').checked) {
           alert("请勾选复选框")
       }
    else {
 
        alert("注册成功！");
        window.location.href="login.html";
 
    }
}
function sendCode(){
	alert("短信验证码已发送");
}
